package com.ck.task.quartz.test;

import com.ck.common.BaseTask;
import com.ck.common.annotation.TaskLog;
import org.quartz.Job;
import org.quartz.JobExecutionContext;
import org.quartz.JobExecutionException;

/**
 * @author ck
 * @date 2023/2/24 16:12
 */
public class HelloJobTask extends BaseTask implements Job {

    @TaskLog
    @Override
    public void execute(JobExecutionContext jobExecutionContext) throws JobExecutionException {
        long startTime = taskStart();
        System.out.println("执行Quartz定时任务");
        taskEnd(startTime);
    }
}
